export default {
  namespaced: true,
  state() {
    return {
      cityName: '北京',
      cityCode: 'AREA|88cff55c-aaa4-e2e0',
      communityName: '',
      community:''
    }
  },
  mutations: {
    changeCity(state, payload) {
      console.log(payload);
      state.cityName = payload.city
      state.cityCode = payload.code
    },
    chooseCommunity(state,payload) {
      state.communityName = payload.communityName
      state.community = payload.community
    }
  }
}